<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
    <script>
    var a=89;
    var b=24;

    var day=parseInt(a/b);
    // console.log(day);

    var hour=a-(day*b);
    // console.log(hour);

    console.log(day + '天' + hour + '个小时')
    </script>
</body>
</html>